Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script src="../../ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $(document).ready(function(){ $("#disable").click(function(){ jQuery.fx.off = true; }); $("#enable").click(function(){ jQuery.fx.off = false; }); $("#toggle").click(function(){ $("div").toggle("slow"); }); }); </script> </head> <body> <p>When the "Toggle animation" button is pressed, we toggle between hiding and showing the div with a slow animation. Press "Enable" or "Disable" to turn animations on and off.</p> <button id="disable">jQuery.fx.off = true ( Disable )</button> <button id="enable">jQuery.fx.off = false ( Enable )</button> <br><br> <button id="toggle">Toggle animation</button> <div style="background:#98bf21;height:100px;width:100px;margin:50px;"> </div> </body> <!-- Mirrored from www.w3schools.com/jquery/tryit.asp?filename=tryjquery_prop_jq_fx_off by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:16:33 GMT --> </html>
Result:
Try it Yourself - © w3schools.com